#pragma once
#include "PackOut.h"
#include "protodef.h"

class CFileReceiver : public CAsyncSocket
{
public:
	CFileReceiver();
	~CFileReceiver();

private:
	virtual void	OnClose(int nErrorCode);
	virtual void	OnConnect(int nErrorCode);
	virtual void	OnReceive(int nErrorCode);

private:
	void	OnRecvData(WORD wCmd, BYTE cSubCmd, PVOID pData, WORD wLen);

private:
	PBYTE		m_pBuffer;
	CBuffer		m_oBuffer;
};

